﻿/*----------------------------------------------------------------
// Copyright (C) 2012
// 版权所有
//
// 文件名：IOrderOnline_Model.cs
// 文件功能描述：
//
//
// 创建标识：Libing 2012-05-07 13:23:02 星期一
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Text;

namespace WMS.IDAL
{
    public interface IOrderOnline_Model
    {
        #region 基本方法

        /// <summary>
        /// 添加实体
        /// </summary>
        /// <param name="orderOnlineModel">类型为 WMS.Model.OrderOnline_Model 的实体</param>
        /// <returns></returns>
        bool Insert(WMS.Model.OrderOnline_Model orderOnlineModel);

        /// <summary>
        /// 修改实体
        /// </summary>
        /// <param name="orderOnlineModel">类型为 WMS.Model.OrderOnline_Model 的实体</param>
        /// <returns></returns>
        bool Update(WMS.Model.OrderOnline_Model orderOnlineModel);

        /// <summary>
        /// 最小修改实体
        /// </summary>
        /// <param name="model">类型为WMS.Model.OrderOnline_Model的实体</param>
        /// <returns></returns>
        bool UpdateMinimal(WMS.Model.OrderOnline_Model orderOnlineModel);

        /// <summary>
        /// 删除实体(根据主键 ID)
        /// </summary>
        /// <param name="id">Id</param>
        /// <returns></returns>
        bool DeleteByID(string id);

        /// <summary>
        /// 删除实体(指定条件)
        /// </summary>
        /// <param name="whereClause">WHERE语句</param>
        /// <returns></returns>
        bool DeleteDynamic(string whereClause);

        /// <summary>
        /// 获取实体(根据主键 ID)
        /// </summary>
        /// <param name="id">Id</param>
        /// <returns></returns>
        WMS.Model.OrderOnline_Model GetByID(string id);

        #endregion

        #region	公共方法

        /// <summary>
        /// 获取实体列表(指定数目和查询条件)
        /// </summary>
        /// <param name="topClause">指定实体数</param>
        /// <param name="whereClause">WHERE语句</param>
        /// <returns></returns>
        List<WMS.Model.OrderOnline_Model> Get(int topClause, string whereClause);

        /// <summary>
        /// 获取实体列表(指定查询条件)
        /// </summary>
        /// <param name="whereClause">WHERE语句</param>
        /// <returns></returns>
        List<WMS.Model.OrderOnline_Model> Get(string whereClause);

        /// <summary>
        /// 获取分页实体列表
        /// </summary>
        /// <param name="whereClause">WHERE 语句</param>
        /// <param name="orderByClause">ORDER BY 语句</param>
        /// <param name="pageIndex">分页索引</param>
        /// <param name="pageSize">分页大小(每页显示的记录数)</param>
        /// <param name="totalRecords">记录总数</param>
        /// <returns></returns>
        List<WMS.Model.OrderOnline_Model> GetPaged(string whereClause, string orderBy, int pageIndex, int pageSize, out int totalRecords);

        #endregion

        #region 自定义方法

        /// <summary>
        /// 获取全部实体列表
        /// </summary>
        /// <returns></returns>
        List<WMS.Model.OrderOnline_Model> GetAll();

        /// <summary>
        /// 根据角色权限获取一级菜单
        /// </summary>
        /// <param name="rolePermission">角色权限</param>
        /// <returns></returns>
        List<WMS.Model.OrderOnline_Model> GetByPermission(string rolePermission);

        #endregion
    }
}
